﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IBupro.Models.Lector.EnrollLectorToSubjectModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	EnrollToSubject
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>EnrollToSubject</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Fields</legend>
            <div class="editor-label">
                <%: Model.Lector.FirstName%>
            </div>

            <div class="editor-label">
                <%: Model.Lector.LastName%>
            </div>

            <div class="editor-label">
                <%: Model.Lector.Username %>
            </div>

            <div class="editor-label">
                <%: Model.Lector.Email %>
            </div>

            <div>
                <h4>Subjects</h4>
            </div>
            <div>
                <%:Html.ListBox("SelectedSubjects", Model.GetSubjectsSelectList(User.Identity.Name, Model.ActualSubjects.ToArray()), new { @class = "select" })%>
            </div>
            
            <p>
                <input type="submit" value="<%:Html.Translate("save")%>" />
            </p>
        </fieldset>

    <% } %>

 

</asp:Content>

